home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / progut~1 / gperf.zoo / Makefile < prev    next >
Encoding:
Makefile  |  1991-01-21  |  1.5 KB  |  52 lines

  1. # Copyright (C) 1989 Free Software Foundation, Inc.
  2. # written by Douglas C. Schmidt (schmidt@ics.uci.edu)
  3. # This file is part of GNU GPERF.
  4. # GNU GPERF is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 1, or (at your option)
  7. # any later version.
  8. # GNU GPERF is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11. # GNU General Public License for more details.
  12. # You should have received a copy of the GNU General Public License
  13. # along with GNU GPERF; see the file COPYING.  If not, write to
  14. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 
  15.  
  16. prefix=/usr/gnu
  17. BINDIR=$(prefix)/bin
  18. LIBDIR=$(prefix)/lib
  19. MANDIR=$(prefix)/man
  20. INSTALL=install
  21.   
  22. all: src-dir
  23.   
  24. src-dir: 
  25.     cd src; $(MAKE) LIBDIR=$(LIBDIR)
  26.   
  27. install:
  28.     cd src; $(MAKE) BINDIR=$(BINDIR) MANDIR=$(MANDIR) INSTALL="$(INSTALL)" install
  29.     $(INSTALL) gperf.1 $(MANDIR)/man1/gperf.1
  30.   
  31. run_tests: gperf
  32.     -cd tests; $(MAKE) GPERF=../src/gperf
  33.  
  34. distrib: 
  35.     cd ..; rm -f gperf.tar.Z; tar cvf gperf.tar gperf; compress gperf.tar; uuencode gperf.tar.Z < gperf.tar.Z > GSHAR
  36.   
  37. shar:
  38.     cd ..; makekit -ngperf ./gperf ./gperf/* ./gperf/src/* ./gperf/tests/*; 
  39.   
  40. clean: 
  41.     cd src; $(MAKE) clean
  42.     cd tests; $(MAKE) clean
  43.     -rm -f *~ 
  44.   
  45. realclean: clean
  46.     -rm -f gperf.info* gperf.?? gperf.??s gperf.log gperf.toc \
  47.           gperf.*aux *inset.c *out gperf
  48.